<template>
    <div class="headerBox">
        <img src="../static/images/theme22x.png" alt="">
        <div>
            客服账号:{{ store.userinfo.username }}
            <a-popconfirm title="真的要切换账号吗" placement="left" @confirm="change">
                <template #icon><question-circle-outlined style="color: red" /></template>
            </a-popconfirm>
        </div>

    </div>
</template>

<script setup>
import { ref } from 'vue';
import { useAdmin } from '../store/userInfo';
import {  QuestionCircleOutlined } from '@ant-design/icons-vue';
const store = useAdmin()
const open = ref(false);

const change = () => {
    open.value = true;
}


</script>

<style scoped lang="scss">
.headerBox {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: relative;
    flex-direction: column;
    align-items: center;
    font-size: 18px;
    img {
        width: 45px;
        height: 45px;
        margin-top: 10px;
    }
}
</style>